package com.zztl.infiniteBand.presenter

import android.content.Context

import com.zztl.infiniteBand.base.BasePresenter
import com.zztl.infiniteBand.model.AuditStatusBean
import com.zztl.infiniteBand.net.FilterSubscriber
import com.zztl.infiniteBand.net.RetorfitServiceManger
import com.zztl.infiniteBand.net.converter.DataConverter
import com.zztl.infiniteBand.ui.view.mvpview.CertificationInfoView


/**
 * @desc
 * @auth ${user}
 * @time 2018/6/14  15:26
 */
class AuditSuccessOrFailPresenter : BasePresenter<CertificationInfoView>() {
    fun getAuditInfo(context: Context) {
        addSubscribe(RetorfitServiceManger.observe(RetorfitServiceManger.instance!!.apiService
                .getCertificateInfo(DataConverter.instance.toJson("")))
                .subscribe(object : FilterSubscriber<AuditStatusBean>(context) {

                    override fun success(bean: AuditStatusBean) {
                        view!!.success(bean)
                    }


                }))
    }
}
